@extends('admin.layout')
@section('title',$title)
@section('content')
<!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                轮播图管理
                <small>在这里,你可以添加你的轮播图</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="{{ url('/admin/index') }}"><i class="fa fa-dashboard"></i>主页</a></li>
                <li><a href="{{ url('/admin/lunbo/index') }}">轮播图管理</a></li>
                <li class="active">添加</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">快速添加轮播图</h3>
                        </div><!-- /.box-header -->
                        <!--表单错误验证-->
                        @if (count($errors) > 0)
                         <div class="alert alert-danger">
                             <ul>
                         @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                         @endforeach
                        </ul>
                         </div>
                        @endif
                        <!-- form start <-->    </-->
                        <form role="form" action="{{ url('/admin/lunbo/insert') }}" method="post" enctype="multipart/form-data">
                        {{ csrf_field() }}

                            <div class="box-body">
                                <!--<div class="form-group">
                                    <label for="exampleInputEmail1">图片名</label>
                                    <input type="text" value="{{ old('pic_name') }}" name="pic_name" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入图片名">
                                </div>-->
                                
                                <div class="form-group">
                                    <label for="exampleInputFile">图片</label>
                                    <input type="file" value="" name="a_spic" id="exampleInputFile">
                                    <p class="help-block">请插入一张图片</p>
                                </div>
                                
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">插入</button>
                            </div>
                        </form>
                    </div><!-- /.box -->
                </div><!--/.col (left) -->
            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->

@endsection

              
